# 处理缺失值

import os
import pandas as pd


data_file = os.path.join('./data/221/house_tiny.csv')

data = pd.read_csv(data_file)

inputs, outputs = data.iloc[:, 0:2], data.iloc[:, 2]

print(inputs)

inputs = inputs.fillna(inputs.mean())

inputs = pd.get_dummies(inputs, dummy_na=True)
print(inputs)

